package com.example.rental.entity;

import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * (User)实体类
 *
 * @author makejava
 * @since 2023-07-04 11:11:34
 */
@Data//自动帮我们生成getXX和setXX方法
@Api("用户类")
@Schema(name="User",description = "用户信息类") //当前描述信息
public class User implements Serializable{
    private static final long serialVersionUID = 741036233294813485L;
    @Schema(name = "userid",description = "主键,用户id")
    private Integer userid;
    @Schema(name = "username",description = "用户姓名")
    private String username;
    @Schema(name = "password",description = "用户密码")
    private String password;
    @Schema(name = "phone",description = "用户电话号码")
    private String phone;
    @Schema(name = "state",description = "用户状态")
    private Integer state;
    @Schema(name = "sex",description = "用户性别")
    private String sex;
    @Schema(name = "payment",description = "用户支付方式")
    private String payment;
    @Schema(name = "age",description = "用户年龄")
    private Integer age;
    @Schema(name = "payment",description = "头像")
    private String image;

}

